﻿using System;
using System.Windows.Forms;

namespace AppStateMonitor
{
    static class Program
    {
     
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main(string[] args)
        {
          
            
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var targetProcessName = args.Length >= 1 ? args[0] : null;
            using (var f = new Form1(targetProcessName))
            {
            f.WindowState = FormWindowState.Minimized;
            
            f.Hide();

            Application.Run();
            }
        }
    }
}
